from flask import Flask

import uncompyle6

app = Flask(__name__)


@app.route('/')
def hello_world():  # put application's code here
    decompile_so_file('air_web.ruleng.es.cpython-38-x86_64-linux-gnu.so','air_web.ruleng.py')
    return 'Hello World!'

def decompile_so_file(file,output_file):
    with open(file,'rb') as f:
        so_content=f.read()

    py_code=uncompyle6.decompile(so_content)

    with open(so_content,'w') as f:
        f.write(py_code)



if __name__ == '__main__':
    app.run()
